package org.example.stream.demo;

import org.example.stream.demo.entity.User;

import java.util.List;
import java.util.stream.Collectors;

public class DistinctMain {
    public static void main(String[] args) {
        List<User> list = UserBuilder.bindings();

        list.stream().distinct().forEach(System.out::println);

        List<Integer> integers = List.of(1, 2, 1);
        System.out.println(integers.stream().distinct().collect(Collectors.toList()));
    }
}
